# coding=utf-8

from __future__ import print_function
import datetime
from apscheduler.schedulers.background import BackgroundScheduler
from app.job_task import job_task


def aps_test():
    job_task()


def aps_test1(x):
    print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'), x)


scheduler = BackgroundScheduler()
scheduler.add_job(func=aps_test, trigger='cron', second='*/10')
scheduler.add_job(func=aps_test1, trigger='cron', second='*/5', args=('你好!',))
scheduler.start()
